package com.huixiaodian.ft_user.arouter_service;

import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.huixiaodian.baselibrary.ft_user.service.LoginService;
import com.huixiaodian.ft_user.view.activity.LoginActivity;
import com.huixiaodian.ft_user.view.activity.SafetyActivity;
import com.huixiaodian.ft_user.view.activity.UserInfoActivity;

@Route(path = "/login/login_center")
public class LoginServiceImpl implements LoginService {

    @Override
    public void startLoginActivity(Context context) {
        context.startActivity(new Intent(context, LoginActivity.class));
    }

    @Override
    public void startUserInfoActivity(Context context) {
        context.startActivity(new Intent(context, UserInfoActivity.class));
    }

    @Override
    public void startUserSafetyActivity(Context context) {
        context.startActivity(new Intent(context, SafetyActivity.class));
    }

    @Override
    public void init(Context context) {
        Log.i(LoginServiceImpl.class.getSimpleName(), "init()");
    }
}
